//
//  UserListAPI.m
//  StarOrangeStaff
//
//  Created by lshenrong on 2020/7/7.
//  Copyright © 2020 lshenrong. All rights reserved.
//

#import "UserListAPI.h"

@interface UserListAPI()

@property (nonatomic,assign) NSInteger pageSize;
@property (nonatomic,copy) NSString *pageNum;
@property (nonatomic,copy) NSString *userName;
@property (nonatomic,copy) NSString *phoneNumber;
@property (nonatomic,copy) NSString *office; //职位

@end

@implementation UserListAPI

- (instancetype)initWithPageSize:(NSInteger)pageSize
pageNum:(NSInteger)pageNum {
    if (self = [super init]) {
        [self testDataAPI];
       
    }
    return self;
}

- (void)testDataAPI {
    self.pageNum = @"1";
    self.pageSize = 5;
    self.office = @"高级";
}

- (NSString *)requestUrl {
    return @"message/user/queryUserList";
}



- (id)requestAppendArgument{
    AvoidNullString(self.userName);
    AvoidNullString(self.phoneNumber);
    AvoidNullString(self.office);

    
    return @{
            @"pageNum":self.pageNum,
            @"pageSize":@(self.pageSize),
            @"userName":self.userName,
            @"phoneNumber":self.phoneNumber,
            @"office":self.office,
            };

}



@end
